﻿@model PartyInvites.Models.GuestResponse
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>RsvpForm</title>
    <link rel="stylesheet" href="@Href("~/Content/Site.css")" type="text/css"/>
</head>
<body>
    @Html.ValidationSummary()
    @using (Html.BeginForm())
    {
        <table>
            <tr>
                <td>Your name:</td>
                <td>@Html.TextBoxFor(x => x.Name)</td>
            </tr>
            <tr>
                <td>Your email:</td>
                <td>@Html.TextBoxFor(x => x.Email)</td>
            </tr>
            <tr>
                <td>Your phone:</td>
                <td>@Html.TextBoxFor(x => x.Phone)</td>
            </tr>
            <tr>
                <td>Will you attend?</td>
                <td>
                    @Html.DropDownListFor(
                        x => x.WillAttend,
                        new[]
                            {
                                new SelectListItem(){Text = "Yes, I'll attend!", Value = bool.TrueString}, 
                                new SelectListItem(){Text = "Sorry, I can not be there.", Value = bool.FalseString}
                            },
                        "Choose an option.")
                </td>
            </tr>
            <tr><td colspan="2"><input type="submit" value="Submit RSVP"/></td></tr>
        </table>

    }

</body>
</html>
